import React from 'react'
import Layout from '../components/Layout'
import Swiper, { loadSwiper } from '../components/Swiper'
import Movie from '../components/Movie'

export default function Home({swiper}) {
  console.log(swiper)
  return (
    <React.Fragment>
      <Layout />
      <Swiper data={swiper} />
      <Movie />
    </React.Fragment>
  )
}

// export async function getStaticProps () {
//   let { data: swiper } = await loadSwiper()
//   return {
//     props: {
//       swiper
//     }
//   }
// }
